package game;



public class prepararJuego extends JFrameConFondo {

	public prepararJuego() {
		initComponents();
	}

	// GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jButton1 = new javax.swing.JButton();
		jButton2 = new javax.swing.JButton();
		jButton3 = new javax.swing.JButton();
		jButton4 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("Bowling Net");
		setResizable(false);

		jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"imagenes/b1.png"))); // NOI18N
		jButton1.setBorder(null);
		jButton1.setBorderPainted(false);
		jButton1.setContentAreaFilled(false);
		jButton1.setPressedIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b1_3.png"))); // NOI18N
		jButton1.setRolloverIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b1_2.png")));
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"imagenes/b2.png"))); // NOI18N
		jButton2.setBorder(null);
		jButton2.setContentAreaFilled(false);
		jButton2.setPressedIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b2_3.png"))); // NOI18N
		jButton2.setRolloverIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b2_2.png"))); // NOI18N
		jButton2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton2ActionPerformed(evt);
			}
		});

		jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"imagenes/b3.png"))); // NOI18N
		jButton3.setBorder(null);
		jButton3.setContentAreaFilled(false);
		jButton3.setPressedIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b3_3.png"))); // NOI18N
		jButton3.setRolloverIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b3_2.png"))); // NOI18N
		jButton3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton3ActionPerformed(evt);
			}
		});

		jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"imagenes/b5.png"))); // NOI18N
		jButton4.setBorder(null);
		jButton4.setContentAreaFilled(false);
		jButton4.setPressedIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b5_2.png"))); // NOI18N
		jButton4.setRolloverIcon(new javax.swing.ImageIcon(getClass()
				.getResource("imagenes/b5_3.png"))); // NOI18N
		jButton4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton4ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								layout
										.createSequentialGroup()
										.addGroup(
												layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addGap(
																				20,
																				20,
																				20)
																		.addGroup(
																				layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jButton4)
																						//.addComponent(
																							//	jButton3)
																						.addComponent(
																								jButton2)))
														.addGroup(
																layout
																		.createSequentialGroup()
																		.addGap(
																				40,
																				40,
																				40)
																		.addComponent(
																				jButton1)))
										.addContainerGap(643, Short.MAX_VALUE)));
		layout
				.setVerticalGroup(layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								layout
										.createSequentialGroup()
										.addContainerGap(430, Short.MAX_VALUE)
										.addComponent(
												jButton1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												13,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jButton2,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												15,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(1, 1, 1)
										//.addComponent(
											//	jButton3,
												//javax.swing.GroupLayout.PREFERRED_SIZE,
												//15,
												//javax.swing.GroupLayout.PREFERRED_SIZE)
										//.addGap(1, 1, 1)
										.addComponent(
												jButton4,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												13,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(69, 69, 69)));

		java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit()
				.getScreenSize();
		setBounds((screenSize.width - 800) / 2, (screenSize.height - 600) / 2,
				800, 600);
	}// </editor-fold>

	// GEN-END:initComponents

	private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
		r = new records();
		this.dispose();
		//client.consultRecords();		
	}

	private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
		c = new configuracion();
		this.dispose();
		c.configurarServidor();
	}

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		p = new personajes();
		this.dispose();
		p.seleccionPersonaje();
	}

	private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
		i = new instrucciones();
		this.dispose();
		i.mostrarInstrucciones();
	}

	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				JFrameConFondo jf = new prepararJuego();
				// jf.setLocationRelativeTo(null);
				jf.setImagen("imagenes/fondo1.png");
				jf.setVisible(true);
			}
		});
	}

	// GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton jButton1;
	personajes p;
	instrucciones i;
	configuracion c;
	records r;
	private javax.swing.JButton jButton2;
	private javax.swing.JButton jButton3;
	private javax.swing.JButton jButton4;
	// End of variables declaration//GEN-END:variables

}
